package com.shopnight.vo;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class PostListVo {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 内容
     */
    private String content;


    /**
     * 帖子分类id
     */
    private Integer categoryId;

    /**
     * 点击次数
     */
    private Integer clickhitNum;

    /**
     * 创建时间
     */
    private Date createTime;



    /**
     * 帖子分类名称
     */
    private String categoryName;

    /**
     * 置顶字段
     */
    private Integer isTop;

    //热度
    private Integer heat;

    /**
     * 用户id
     */
    private Integer userId;
    private String userNick;
    private String avatar;
    private Integer sex;


    private List<PostCommentList> postCommentList;

    @Data
    public static class PostCommentList{
        private Long userId;
        //评论用户的头像
        private String avatar;
        //评论的时间
        private Date createDate;
    }




}
